package com.gagakuai.transcation;


import java.sql.Connection;
import java.sql.SQLException;

/*
 * 事务
 *
 * @author mac
 */
public interface Transaction {

    Connection getConnection() throws SQLException;


    void commit() throws SQLException;

    void rollback() throws SQLException;

    void close() throws SQLException;

    Integer getTimeout() throws SQLException;
}
